package com.mxprojects.constructors
{
	import com.mxprojects.gui.Styles;
	
	import flash.display.MovieClip;
	import flash.text.TextField;
	
	public class ButtonSmall extends ButtonConstructor
	{
		public var background:MovieClip;
		public var label:TextField;
		
		public function ButtonSmall(text:String, clickFunction:Function){
			//setup text and background
			setupButton("<span class=\"buttonSmallText\">" + text + "</span>", clickFunction, label, background);
			Styles.setProperties(background, ".buttonSmallBackground");
		}
	}
}